const mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({
    NewsCid: mongoose.Schema.ObjectId,
    /* 类 型ID */
    NewsTitle: String,
    /* 新闻标题 */
    NewsClass: String,
    /* 新闻类型 */
    NewsAddress: String,
    /* 新闻地址 */
    UploadTime: Date,
    /* 上传时间 */
    Uploader: String,
    /* 上 传 者 */
    NewsAuthor: String,
    /* 编 辑 人 */
    NewsContent: String,
    /* 新闻内容 */
    UpdataRecord: String,
    /* 更改记录 */
    UpdataRperator: String,
    /* 更改人员 */
    ViewCount: Number /* 浏览次数 */
});
schema.plugin(mongoosePaginate);

var News = mongoose.model('News', schema);

module.exports = News;